package com.mexico.inloancash.utils;

import android.util.Log;

/**
 * Created by zhwei on 2017/3/21.
 */

public class Logger implements TheValueOnAll {

    /*
     * for debug true or false
     */
    public static boolean r = isDebug;


    public static void d(String tag, String message) {
        if (r) {
            Log.d(tag, message);
        }
    }

    public static void i(String tag, String message) {
        if (r) {
            Log.i(tag, message);
        }

    }

    public static void e(String tag, String message) {
        if (r) {
            Log.e(tag, message);
        }

    }

    public static void w(String tag, String msg) {
        if (r) {
            Log.w(tag, msg);
        }
    }

    public static void d(String tag, String msg, Throwable tr) {

        if (r) {
            Log.d(tag, msg, tr);
        }

    }


    public static void e(String tag, String msg, Throwable tr) {
        if (r) {
            Log.e(tag, msg, tr);
        }
    }

}
